﻿<Window x:Class="WIAssistant.QueryParams"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Query Parameters" Height="390" Width="504" 
    Background="#E9ECFA"
    FontSize="14" 
    Icon="/WIAssistant;component/WIAssistant.ico">
    
    <!--xmlns:diagnostics="clr-namespace:System.Diagnostics;assembly=WindowsBase"  , diagnostics:PresentationTraceSources.TraceLevel=High-->
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0">Enter Query Parameters</TextBlock>
        <ListBox HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" Grid.Row="1" DataContext="{Binding Parameters}" ItemsSource="{Binding}" Background="Transparent">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="100"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <TextBlock Grid.Column="0" Text="{Binding Key}"></TextBlock>
                        <TextBox Grid.Column="1" Text="{Binding Value, Mode=TwoWay}"></TextBox>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>        
    </Grid>
</Window>
